//
//  Macro.swift
//  SwiftPods
//
//  Created by hulinhu on 2018/1/16.
//  Copyright © 2018年 hulinhu. All rights reserved.
//

import UIKit

// 屏幕宽度
let kScreenHeight = UIScreen.main.bounds.height
// 屏幕高度
let kScreenWidth = UIScreen.main.bounds.width
//适配iPhoneX
let kis_iPhoneX = (kScreenWidth == 375.0 && kScreenHeight == 812.0 ?true:false)
let kNavBarHeight: CGFloat = kis_iPhoneX ? 88.0 : 64.0
let kTabbarH: CGFloat = kis_iPhoneX ? 49.0+34.0 : 49.0
let kStatusbarH: CGFloat = kis_iPhoneX ? 44.0 : 20.0
let kiPhoneXBottomH: CGFloat = 34.0
let kiPhoneXTopH: CGFloat = 24.0



// MARK:- 自定义打印方法
func NSLog<T>(_ message : T, file : String = #file, funcName : String = #function, lineNum : Int = #line) {
    
    #if DEBUG
        let fileName = (file as NSString).lastPathComponent
        print("\(fileName):(\(lineNum))-\(message)")
        
    #endif
}
